﻿/*!	@file	r_gui_drawinfo.h
	@brief	GUI情報
Copyright (c) 2010 Yuya Yamaguchi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef _R_GUI_DRAWINFO_H_
#define _R_GUI_DRAWINFO_H_

#include "../math/r_math_colorRGBi.h"
#include "../thread/r_thread_profile_client.h"

namespace r{
	namespace gui{
		struct DrawInfo {
			//! デフォルトコンストラクタ
			DrawInfo()
				:
				activeWindowColor ( 0xd0, 0xd0, 0xd0, 0x80 ),
				passiveWindowColor ( 0xa9, 0xa9, 0xa9, 0x80 ),
				hoverWindowColor ( 0xf0, 0xf0, 0xf9, 0x88 ),

				activePartColor ( 0xe0, 0xe0, 0xe0, 0x80 ),
				passivePartColor ( 0x9c, 0x9c, 0x9c, 0x80 ),
				hoverPartColor ( 0xfb, 0xfb, 0xff, 0x88 ),
				dragPartColor ( 0xdb, 0xdb, 0xdf, 0x88 ),

				activeWPartColor ( 0xff, 0xff, 0xff, 0x80 ),
				passiveWPartColor ( 0x9c, 0x9c, 0x9c, 0x80 ),
				hoverWPartColor ( 0xff, 0x30, 0x30, 0x88 ),
				dragWPartColor ( 0xdd, 0x30, 0x30, 0x88 ),

				activeCharColor ( 0x00, 0x00, 0x00, 0xff ),
				passiveCharColor ( 0x80, 0x80, 0x80, 0xff ),
				hoverCharColor ( 0x20, 0x20, 0x60, 0xff ),

				basicCharColor ( 0xff, 0xff, 0xff, 0xff ),
				shadowCharColor ( 0x30, 0x30, 0x30, 0xff ) {
				profileColor[r::thread::profile::Type_Default]	= r::math::ColorRGBi ( 0x0, 0x0, 0xff, 0xff );
				profileColor[r::thread::profile::Type_Draw]		= r::math::ColorRGBi ( 0xff, 0x0, 0x0, 0xff );
				profileColor[r::thread::profile::Type_Dynamics]	= r::math::ColorRGBi ( 0x0, 0xff, 0x0, 0xff );
				profileColor[r::thread::profile::Type_Rest]		= r::math::ColorRGBi ( 0x60, 0x20, 0x80, 0xff );
			}
			//! アクティブウィンドウカラー
			r::math::ColorRGBi		activeWindowColor;
			//! 非アクティブウィンドウカラー
			r::math::ColorRGBi		passiveWindowColor;
			//! ホバーウィンドウカラー
			r::math::ColorRGBi		hoverWindowColor;
			//! アクティブパーツカラー
			r::math::ColorRGBi		activePartColor;
			//! 非アクティブパーツカラー
			r::math::ColorRGBi		passivePartColor;
			//! ホバーパーツカラー
			r::math::ColorRGBi		hoverPartColor;
			//! ドラッグパーツカラー
			r::math::ColorRGBi		dragPartColor;

			//! アクティブ白パーツカラー
			r::math::ColorRGBi		activeWPartColor;
			//! 非アクティブ白パーツカラー
			r::math::ColorRGBi		passiveWPartColor;
			//! ホバー白パーツカラー
			r::math::ColorRGBi		hoverWPartColor;
			//! ドラッグ白パーツカラー
			r::math::ColorRGBi		dragWPartColor;

			//! アクティブ文字色
			r::math::ColorRGBi		activeCharColor;
			//! 非アクティブ文字色
			r::math::ColorRGBi		passiveCharColor;
			//! ホバー文字色
			r::math::ColorRGBi		hoverCharColor;
			//! 通常字色
			r::math::ColorRGBi		basicCharColor;
			//! 影文字色
			r::math::ColorRGBi		shadowCharColor;

			//! プロファイラカラー
			r::math::ColorRGBi		profileColor[r::thread::profile::Type_Term];
		};
	}
}


#endif // _R_GUI_DRAWINFO_H_

